<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-lg-12">
        <section class="panel">
            <header class="panel-heading">编辑模型</header>
            <div class="panel-body">
                <form class="form-horizontal adminex-form" method="post" action="<?php echo e(url('model/edit')); ?>">
                    <input type="hidden" name="id" value="<?php echo e($res->model_id); ?>">
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">模型名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="model_name" value="<?php echo e($res->model_name); ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">模型操作表</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="model_table" value="<?php echo e($res->model_table); ?>">
                            <span class="help-block">数据表</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">状态</label>
                        <div class="col-sm-10">
                            <div class="icheck ">
                                <div class="flat-grey">
                                    <div class="radio ">
                                        <input type="radio"  name="state" value="1" 
                                            <?php if($res->state == 1): ?>
                                             checked=""
                                            <?php endif; ?>
                                        >
                                        <label>关闭</label>
                                    </div>
                                </div>
                                <div class="flat-green">
                                    <div class="radio">
                                        <input type="radio"   name="state" value="2"
                                            <?php if($res->state == 2): ?>
                                             checked=""
                                            <?php endif; ?>
                                        >
                                        <label>开启</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">首页模板</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="indextpl"  value="<?php echo e($res->indextpl); ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">阅读模板</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="readtpl"  value="<?php echo e($res->readtpl); ?>">
                        </div>
                    </div>
                    <?php echo e(csrf_field()); ?>

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-10">
                            <button type="submit" class="btn btn-success">提交</button>
                            <button type="reset" class="btn btn-default">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </section>
    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>